package com.spring.cloud.consume.config;

import com.spring.cloud.consume.service.FeignProvideService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component
public class HystrixProvide implements FeignProvideService {
    public Logger log = LoggerFactory.getLogger(this.getClass());

    /**
     * feign  熔断
     * @param name
     * @return
     */
    @Override
    public String feign(String name) {
        log.info("hystrix   test from feign turbineErrorBack......");
        return name;
    }
}
